package uebungsblatt09.aufgabe15a;

import java.io.Serializable;

public class Controller implements Serializable
{
	private static final long serialVersionUID = -6551949949218216997L;

	private String command;
	private Model model;
	
	public Controller(){}
	
	public Controller(Model model, String command)
	{
		this.model = model;
		this.command = command;
	}
	
	public void changeModel(int w)
	{
		model.setW(w);
	}
	
	public String getCommand()
	{
		return command;
	}
	
	public void setCommand(String command)
	{
		this.command = command;
	}
	
	public Model getModel()
	{
		return model;
	}
	
	public void setModel(Model model)
	{
		this.model = model;
	}
}
